package javacommon.authority.validator;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class UserUpdateValidator extends Validator{

	@Override
	protected void validate(Controller c) {
		validateRequired("user.name", "user_name_msg", "请输入姓名");
	}

	@Override
	protected void handleError(Controller c) {
		c.render("userList.html");
	}

}
